.search_index{
  height: 100%;
  position: relative;
  background: #eee;
  .search_head{
    // border:1px solid black;
    height: 91rpx;
    display: flex;
    padding: 0 32rpx;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border-bottom: 1rpx solid rgba(0, 0, 0, 0.15);
    div:nth-child(1) {
      height: 59rpx;
      display: flex;
      align-items: center;
      background: #f4f4f4;
      border-radius: 15px;
      img{
        display: inline-block;
        width: 31rpx;
        height: 31rpx;
        padding: 0 20rpx;
      }
      input{
        display: inline-block;
        width: 480rpx;
        height: 59rpx;
        margin-left: 10rpx;
      }
      .search_del{
        width: 40rpx;
        height: 40rpx;
        padding-right: 7px;
      }
    }
    div:nth-child(2) {
      flex: 1;
      font-size:15px;
      padding-left:4px;
    }
  }

  //输入框搜索到的商品提示语
  .search_goodslist{
    position: absolute;
    width: 100%;
    top: 91rpx;
    left: 0;
    bottom: 0;
    box-sizing: border-box;
    padding: 0 32rpx;
    z-index: 9;
    background: #fff;
    /*background: #fff;*/
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    div{
      div{
        padding: 20rpx 0;
      }  
    }    
    .nogoods{
      text-align: center;
      margin-top: 300rpx;
    }
  }
  
  //历史记录
  .history{
    margin-bottom: 10px;
    background: #fff;
    padding: 32rpx;
    .t{     
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 30rpx;
      div:nth-child(2) {
        width: 55rpx;
        height: 55rpx;
        background: url("http://r.photo.store.qq.com/psc?/V13kx5iq3fGNrB/h4SLI6MeeCc7mRdKk01ussMHyQK*3uzniJGswv1JzuEBS8mMHmEajPawOOqTnNAKw1Lf3OS2r.wIZKTfvi473odT64RefqvZMuxSKG5forU!/r") no-repeat;
        background-size: 100% 100%;
      }
    }
    .cont{
      background: #fff;
      z-index: 99;
      display: flex;
      flex-wrap: wrap;
      div{
        padding: 10rpx;
        border: 1rpx solid #999;
        margin: 0 30rpx 20rpx 0;
      }
      .active{
        border: 1rpx solid #b4282d;
        color: #b4282d;
      }
    }
  }

  //搜索到的商品列表
  .goodsList{
    position: absolute;
    width: 100%;
    top: 91rpx;
    left: 0;
    bottom: 0;
    box-sizing: border-box;
    padding: 0 32rpx;
    z-index: 9;
    background: #fff;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    .sortnav{
      display: flex;
      width: 100%;
      height: 78rpx;
      line-height: 78rpx;
      background: #fff;
      border-bottom: 1rpx solid #d9d9d9;
      div{
        width: 50%;
        height: 100%;
        text-align: center;
      }
      .active{
        color: #b4282d;
      }
      .price {
        background: url("http://r.photo.store.qq.com/psc?/V13kx5iq3fGNrB/h4SLI6MeeCc7mRdKk01usqsvbmtWJGTcah39zfJJe*5wVfBvUkYDHbYSgfNPcYRy9PcOMGRsOvnp*CNcGoa2ng9A8whhOkF9937iYykCvkk!/r") 165rpx center no-repeat;
        background-size: 15rpx 21rpx;
        background-position: 65% 50%;//第一个值x轴方向移动
      }
      .desc {
        color: #b4282d;
        background: url("http://r.photo.store.qq.com/psc?/V13kx5iq3fGNrB/h4SLI6MeeCc7mRdKk01uspQp*tibR31w5oYw6O06aUXwm4CzZipk1Azm92D8aGSJIC1MvCzyS7Sr7uPIc2P5c7fzGbM9r5NRP5KKCDrNRtc!/r") 165rpx center no-repeat;
        background-size: 15rpx 21rpx;
        background-position: 65% 50%;//第一个值x轴方向移动
      }
      .asc {
        color: #b4282d;
        background: url("http://r.photo.store.qq.com/psc?/V13kx5iq3fGNrB/h4SLI6MeeCc7mRdKk01ussw5fhUXf3CMmo5xtbwM2QvNVUf.uX39hzz6XAl24FBIZESB4onqfvcX6Jx7Ugi*pzy9CnL.ZvNRXmqzUau0U3U!/r") 165rpx center no-repeat;
        background-size: 15rpx 21rpx;
        background-position: 65% 50%;//第一个值x轴方向移动
      }
    }
    .sortlist{
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      .item{
        box-sizing: border-box;
        width: 50%;
        text-align: center;
        background-color: #fff;
        padding: 15rpx 0;
        border-bottom: 1rpx solid #d9d9d9;
        border-right: 1rpx solid #d9d9d9;
        img{
          display: block;
          width: 302rpx;
          height: 302rpx;
          margin: 0 auto;
        }
        .name{
          margin: 15rpx 0 22rpx 0;
          text-align: center;
          padding: 0 20rpx;
          font-size: 24rpx;
        }
        .price{
          text-align: center;
          font-size: 30rpx;
          color: #b4282d;
        }
      }
      //出现item类名时低2n个标签，如2、4、6....
      .item:nth-child(2n) {
        border-right: none;
      }
      //出现item、active类名时该最后的一个标签
      .item.active:nth-last-child(1) {
        border-bottom: none;
      }
      .item.active:nth-last-child(2) {
        border-bottom: none;
      }
      .item.none:last-child{
        border-bottom: none;
      }
    }
  }
}